package com.ywu.application.standard.dataSource.data;

import com.ywu.application.standard.dataSource.entity.YwuDataExecVersionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName YwuDataExecVersionRepository
 * @Description TODO
 * @Author GroundDemo
 * @Date 2024/10/22 22:55
 * @Version 1.0
 **/
@Mapper
public interface YwuDataExecVersionRepository {
    void deleteDataExecByVersion(@Param("model") YwuDataExecVersionEntity deleteEntity);

    void addVersionInfo(@Param("model") YwuDataExecVersionEntity ywuDataExecVersionEntity);

    void deleteAllVersionByResourceId(@Param("id") String id);

    YwuDataExecVersionEntity getEntity(@Param("model") YwuDataExecVersionEntity search);

    void updateVersionInfo(@Param("model") YwuDataExecVersionEntity updateEntity);

    List<YwuDataExecVersionEntity> queryVersionList(@Param("model") YwuDataExecVersionEntity search);

    void deleteByIdAndVersion(@Param("model") YwuDataExecVersionEntity ywuThirdExecVersionEntity);

    List<YwuDataExecVersionEntity> queryDraftListByResourceIds(@Param("list") List<String> resourceIds);
}
